#include <iostream>

void graph(char C, int N)
{
    using namespace std;
    for (int i=1; i<=N; i++)
    {
        for (int j=1; j<=i; j++)
        {
            cout << C;
        }
        cout << endl;
    }
}

int main()
{
    using namespace std;
    char c;
    int lines;
    cout << "请输入字符和行数：" << endl;
    cin >> c >> lines;
    graph(c, lines);
    
    return 0;
}